package com.sxp.dao;

import com.sxp.bean.User;

/**
 * @author 宋晓盼
 * @since 2019/5/7 12:46
 */
public interface UserDao {
    //用户注册
    public void adduser(User user);

    //登录
    public String selectuser(String userpwd);

    //买书数量
    int addbuycar(int id);

    /**
     *
     * @param username
     * @return
     */
    User getByUsername(String username);

    /**
     *
     * @param user
     * @return
     */
    Integer save(User user);

    void update(User user);
}
